package org.nhindirect.stagent;

public class ProtocolException extends NHINDException 
{
    public enum ProtocolError
    {
        Unexpected,
        InvalidCRLF,
        InvalidMimeEntity,
        InvalidHeader,
        InvalidBody,
        InvalidBodySubpart,
        MissingTo,
        MissingFrom,
        MissingNameValueSeparator,
        MissingHeaderValue,
        ContentTypeMismatch,
        TransferEncodingMismatch,
        Base64EncodingRequired,
        InvalidSignatureMimeParts
    }
    
    public ProtocolException(ProtocolError error)
    {
    	super(error);
    }
    
    public ProtocolException(ProtocolError error, String message)
    {
    	super(error, message);
    }
        
    public ProtocolException(ProtocolError error, Exception innerException)
    {
    	super(error, innerException);
    }
    
    public ProtocolException(ProtocolError error, String message, Exception innerException)
    {
    	super(error, message, innerException);
    }
    
}
